﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ProductClassList.aspx.cs"
    Inherits="kim.ProductClassList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>资讯管理</title>
    <link rel="stylesheet" type="text/css" href="../img/style.css" />
    <script type="text/javascript" src="../js/function.js"></script>
    <script src="../Js/jquery-1.7.1.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $(".msgtable tr:nth-child(odd)").addClass("tr_bg"); //隔行变色
            $(".msgtable tr").hover(
			    function () {
			        $(this).addClass("tr_hover_col");
			    },
			    function () {
			        $(this).removeClass("tr_hover_col");
			    }
		    );
        });
    </script>
</head>
<body style="padding: 10px;">
    <form id="form1" runat="server">
    <div class="navigation">
        <span class="add"><a href="AddorEditProductClassList.aspx?type=Add&typeid=<%=typeid %>">
            添加信息</a></span><b>您当前的位置：首页 &gt;
                <asp:Label ID="Label1" runat="server"></asp:Label>
                &gt; 信息列表 </b>
    </div>
    <div class="spClear">
    </div>
    <div class="spClear">
    </div>
    <asp:Repeater ID="rptlist" runat="server" OnItemDataBound="rptList_ItemDataBound">
        <HeaderTemplate>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="msgtable">
                <tr>
                    <th width="8%">
                        编号
                    </th>
                    <th align="left">
                        类别名称
                    </th>
                    <th width="20%">
                        操作
                    </th>
                </tr>
        </HeaderTemplate>
        <ItemTemplate>
            <tr>
                <td align="center">
                    <asp:Label ID="lb_id" runat="server" Text='<%#Eval("id")%>'></asp:Label>
                      <asp:HiddenField ID="hidLayer" Value='<%#Eval("Depth") %>' runat="server" />
                </td>
                <td align="left">
                 <asp:Literal ID="LitFirst" runat="server"></asp:Literal>
                    <%#Eval("ClassName") %>
                </td>
                <td align="center">
                    <span><a href="AddorEditProductClassList.aspx?id=<%#Eval("id")%>&type=Edit&typeid=<%=typeid %>">修改</a></span>
                    <span><a href="AddorEditProductClassList.aspx?id=<%#Eval("id")%>&type=Delete&typeid=<%=typeid %>" onclick="return confirm( '确定要删除吗？删除后将删除其子下的分类吗？ ')">
                        删除</a></span> 
                        <%-- <span><a href="../ImgIndex/ImgIndex.aspx?typeid=<%#Eval("id")%>&fid=2">
                        分类轮播图</a></span> --%>
                        <%--<span><a href="AddorEditProductClassList.aspx?id=<%#Eval("id")%>&typeid=<%=typeid %>&type=Add">
                            查看添加分类</a> </span>--%>
            </tr>
        </ItemTemplate>
        <FooterTemplate>
            </table>
        </FooterTemplate>
    </asp:Repeater>
    <div class="spClear">
    </div>
    </form>
</body>
</html>
